package com.dream.im.common.domain.enums;

/**
 * @author lijing
 * @version 1.0
 * @title IMListenerType
 * @description 监听类型
 * @date 2024/5/22 21:52
 */
public enum IMListenerType {
    ALL(0,"全部消息"),
    PRIVATE_MESSAGE(1,"私聊消息"),
    GROUP_MESSAGE(2,"群聊消息");

    private final Integer code;

    private final String desc;

    IMListenerType(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer code(){
        return this.code;
    }

}
